home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 22 / AACD 22.iso / AACD / Online / Apache / include / php / regex / utils.h < prev   
Encoding:
C/C++ Source or Header  |  1999-11-13  |  527 b   |  26 lines

  1. /* utility definitions */
  2.  
  3. #include "regex_extra.h"
  4.  
  5. #ifdef _POSIX2_RE_DUP_MAX
  6. #define    DUPMAX    _POSIX2_RE_DUP_MAX
  7. #else
  8. #define    DUPMAX    255
  9. #endif
  10. #define    INFINITY    (DUPMAX + 1)
  11. #define    NC        (CHAR_MAX - CHAR_MIN + 1)
  12. typedef unsigned char uch;
  13.  
  14. /* switch off assertions (if not already off) if no REDEBUG */
  15. #ifndef REDEBUG
  16. #ifndef NDEBUG
  17. #define    NDEBUG    /* no assertions please */
  18. #endif
  19. #endif
  20. #include <assert.h>
  21.  
  22. /* for old systems with bcopy() but no memmove() */
  23. #ifdef USEBCOPY
  24. #define    memmove(d, s, c)    bcopy(s, d, c)
  25. #endif
  26.